package com.me.forum.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.me.forum.domain.User;
import com.me.forum.request.UserRequest;

import java.util.List;

public interface IUserService extends IBaseService<User> {
	/**
	*@description:用户注册服务接口
	*@author:LWP
	*@createTime:2020-04-26 19:43
	*/
	User register(UserRequest ureq);

	/**
	*@description:登录
	*@author:ly
	*@createTime:2020-05-06 10:28
	*/
	User login(String username, String password);

	boolean updateById(UserRequest ureq);

	IPage<User> getUsers(UserRequest ureq,String page,String size);

	boolean addUser(UserRequest ureq);
}
